from django.db import models

class Problem(models.Model):
    id = models.AutoField(primary_key=True)
    problem_title = models.CharField(max_length=200)
    problem_info = models.CharField(max_length=200)
    problem_tags = models.CharField(max_length=200)
    time_limit = models.IntegerField()
    memory_limit = models.IntegerField()
    date = models.DateTimeField('date published')

class User(models.Model):
    id = models.AutoField(primary_key=True)
    user_id = models.CharField(max_length=200,unique=True)
    password = models.CharField(max_length=200)
    email = models.CharField(max_length=200)
    school = models.CharField(max_length=200)
    qq = models.IntegerField()
    group = models.CharField(max_length=200, default="default")
    motto = models.CharField(max_length=200, default="")
    score = models.IntegerField(default=0)
    hb = models.IntegerField(default=0)
    